package activity;

import java.io.Serializable;

public class ShoppingCartBean implements ShoppingCart, Serializable
{
	private Transaction transaction;
	
	public void buy (String product, int quantity, double price)
	{
		if (transaction == null){
			transaction = new Transaction();
			transaction.addPurchase(product, quantity, price);
		}
	}
		public Transaction getTransaction()
		{
			return transaction;
		}
		
		public void checkout()
		{
			
		}
	
}
